import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: '/',
        redirect: { name: 'Home' } ,
        component: () => import('../components/home/home.vue'),
children:[ 
  
  {
    path: '/Home',
    name: 'Home',
    component: () => import('../components/index.vue'),
  
  },{
  path: '/search',
  name: 'Search',
  component: () => import('../components/search/index.vue'),

},
{
  path: '/scMetabolism',
  name: 'scMetabolism',
  component: () => import('../components/scMetabolism/index.vue'),

},
{
  path: '/About',
  name: 'About',
  component: () => import('../components/scMetabolism/About.vue'),

},
{
  path: '/Download',
  name: 'Download',
  component: () => import('../components/Download/Download.vue'),

},
{
  path: '/Analysis',
  name: 'Analysis',
  redirect: { name: 'amalysistable' } ,
  component: () => import('../components/analysis/index.vue'),
  children:[
    {
      path: '/amalysistable',
      name: 'amalysistable',
      component: () => import('../components/analysis/amalysistable.vue'),
    
    },
    {
      path: '/amalysisDetails',
      name: 'amalysisDetails',
      component: () => import('../components/analysis/amalysisDetails.vue'),
    
    },
{
  path: '/analysisList',
  name: 'analysisList',
  component: () => import('../components/analysis/analysisList.vue'),

},{
  path: '/analysisScM',
  name: 'analysisScM',
  component: () => import('../components/analysis/analysisScM.vue'),

}
]
},]
  },
 
  {
    path: '/analysisList',
    name: 'analysisList',
    component: () => import('../components/analysis/analysisList.vue'),
  
  }
//   {
//     path: '/login',
//     name: 'login',
//     component: () => import('../components/login.vue')
//   },
  
//   {
//     path: '/zhu',
//     name: 'zhu',
//     redirect: { name: 'shop' } ,
//     component: () => import('../components/zhu/zhu.vue'),
//     children:[ {
//       path: 'shop',
//       name: 'shop',
//       component: () => import('../components/zhu/shop.vue')
//     },
    
    
//     {
//       path: 'activationCode',
//       name: 'activationCode',
//       component: () => import('../components/zhu/activationCode.vue'),
    
//     },
//     {
//       path: 'service',
//       name: 'service',
//       component: () => import('../components/zhu/service.vue'),
//       children:[{
//         path: 'authorization',
//         name: 'authorization',
//         component: () => import('../components/zhu/authorization.vue')
//       },{
//         path: 'Plugins',
//         name: 'Plugins',
//         component: () => import('../components/zhu/Plugins.vue')
//       }]
//     },
//     {
//       path: 'sales',
//       name: 'sales',
//       redirect: { name: 'salesBox' } ,
//       component: () => import('../components/zhu/xiaosohou.vue'),
//       children:[{
//         path: 'salesBox',
//         name: 'salesBox',
        
//         component: () => import('../components/zhu/salesBox.vue')
//       }]
//     },
//     {
//       path: 'Customer',
//       name: 'Customer',
//       meta: { iskeepAlive: true},
//       redirect: { name: 'news' } ,
//       component: () => import('../components/zhu/Customer.vue'),
//       children:[{
//         path: 'news',
//         name: 'news',
//         meta: { iskeepAlive: true},
//         component: () => import('../components/zhu/news.vue')
//       }]
//     },
//     {
//       path: 'count',
//       name: 'count',
//       meta: { iskeepAlive: true},
//       redirect: { name: 'logistics' } ,
//       component: () => import('../components/zhu/count.vue'),
//       children:[{
//         path: 'logistics',
//         name: 'logistics',
//         meta: { iskeepAlive: true},
//         component: () => import('../components/zhu/logistics.vue')
//       },{
//         path: 'profit',
//         name: 'profit',
//         meta: { iskeepAlive: true},
//         component: () => import('../components/zhu/profit.vue')
//       }]
//     },
//     {
//       path: 'industry',
//       name: 'industry',
//       meta: { iskeepAlive: true},
//       redirect: { name: 'keyword' } ,
//       component: () => import('../components/zhu/industry.vue'),
//       children:[{
//         path: 'keyword',
//         name: 'keyword',
//         meta: { iskeepAlive: true},
//         component: () => import('../components/zhu/keyword.vue')
//       },
//       {
//         path: 'category',
//         name: 'category',
//         meta: { iskeepAlive: true},
//         component: () => import('../components/zhu/category.vue')
//       },]
//     },
//     {
//       path: 'order',
//       name: 'order',
//       meta: { iskeepAlive: true},
    
//       component: () => import('../components/zhu/order.vue'),
   
//     },
//   ]
//   }

 
]

const router = createRouter({
  history: createWebHistory(),
  routes
})


export default router
